#!/bin/bash

USAGE="Usage: `basename $0` <username> <password>"

SERVER="jdbc:oracle:thin:@oracle.cis.drexel.edu:1521:orcl"
USER_NAME=$1
PASSWORD=$2
NUMBER_OF_WORKER_THREADS=$3


if [ "$USER_NAME" == "" ]; then
	echo $USAGE >&2
	exit 1
fi

if [ "$PASSWORD" == "" ]; then
	echo $USAGE >&2
	exit 1
fi

if [ "$NUMBER_OF_WORKER_THREADS" == "" ]; then
	NUMBER_OF_WORKER_THREADS=1
fi


java -cp ./dist/java1.4.info613-project.jar:./lib/ojdbc14.jar Main "$SERVER" "$1" "$2" "$NUMBER_OF_WORKER_THREADS" 
